<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Realm - Users</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="/travel/Public/admin/assets/ico/favicon.html">
    <link href="/travel/Public/admin/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/travel/Public/admin/assets/css/theme.css" rel="stylesheet">
    <link href="/travel/Public/admin/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/travel/Public/admin/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
    <SCRIPT type="text/javascript" src="/travel/Public/ueditor143/ueditor.config.js"></SCRIPT>
<SCRIPT type="text/javascript" src="/travel/Public/ueditor143/ueditor.all.min.js"></SCRIPT>
  </head>
  <body>
    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="/travel/Public/admin/assets/img/logo.png" alt="Realm Admin Template">
          </div>
           <a class="btn btn-navbar visible-phone" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
           <a class="btn btn-navbar slide_menu_left visible-tablet">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>

          <div class="top-menu visible-desktop">
            <ul class="pull-left">
              <li><a id="messages" data-notification="2" href="#"><i class="icon-envelope"></i> Messages</a></li>
              <li><a id="notifications" data-notification="3" href="#"><i class="icon-globe"></i> Notifications</a></li>
            </ul>
            <ul class="pull-right">  
              <li><a href="login.html"><i class="icon-off"></i> Logout</a></li>
            </ul>
          </div>

          <div class="top-menu visible-phone visible-tablet">
            <ul class="pull-right">  
              <li><a title="link to View all Messages page, no popover in phone view or tablet" href="#"><i class="icon-envelope"></i></a></li>
              <li><a title="link to View all Notifications page, no popover in phone view or tablet" href="#"><i class="icon-globe"></i></a></li>
              <li><a href="login.html"><i class="icon-off"></i></a></li>
            </ul>
          </div>

        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->  
      <div class="sidebar-nav nav-collapse collapse">
        <div class="user_side clearfix">
          <img src="/travel/Public/admin/assets/img/odinn.jpg" alt="Odinn god of Thunder">
          <h5>Odinn</h5>
          <a href="#"><i class="icon-cog"></i> Settings</a>        
        </div>
        <div class="accordion" id="accordion2">
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6" href="<?php echo U('userlist');?>"><i class="icon-bullhorn"></i> <span>用户管理</span></a>
            </div>
          </div> 
           <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6" href="<?php echo U('notelist');?>"><i class="icon-bullhorn"></i> <span>游记管理</span></a>
            </div>
          </div> 
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_9FDDF6" href="<?php echo U('travellist');?>"><i class="icon-bullhorn"></i> <span>景点管理</span></a>
            </div>
          </div> 
          <div class="accordion-group">
            <div class="accordion-heading">
              <a class="accordion-toggle b_F5C294 active" href="<?php echo U('typelist');?>"><i class="icon-user"></i> <span>景点类型管理</span></a>
            </div>
          </div>      
        </div>
      </div>
      <!-- /Side menu -->

      <!-- Main window -->
      <div class="main_container" id="users_page">

        <div class="row-fluid">
          <ul class="breadcrumb">
            <li><a href="#">Home</a> <span class="divider">/</span></li>
            <li><a href="#">Pages</a> <span class="divider">/</span></li>
            <li class="active">Users</li>
          </ul>
    
        </div> <!-- /row-fluid -->


        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>Users</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="添加景点类型" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="notes" class="table table-striped table-bordered dataTable">
                <thead>
                  <tr>
                    <th>游记的标题</th>
                    <th>作者</th>
                    <th>景点</th>
                    <th>发表时间</th>
                    <th></th>
                  </tr>
                </thead>
                <tbody>
                <?php if(is_array($notes)): $i = 0; $__LIST__ = $notes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($vo["name"]); ?></td>
                    <td><?php echo ($vo["username"]); ?></td>
                    <td><?php echo ($vo["tname"]); ?></td>
                    <td><?php echo ($vo["notedate"]); ?></td>
                    <td>
                      <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        Action
                          <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                          <li><a href="#"><i class="icon-envelope"></i> Email</a></li>
                          <li><a href="#"><i class="icon-edit"></i> Edit</a></li>
                          <li><a href="deltravel/id/<?php echo ($vo["id"]); ?>"><i class="icon-trash"></i> Delete</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->

    <!-- Example Modal -->
    <div id="example_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">添加景点信息</h3>
      </div>
      <div class="modal-body">
        <p>
<form method="post" action="<?php echo u('addtravel');?>" enctype="multipart/form-data">
景点名称：<input type="text" name="name"><br>
景点类型：<select name="tid">
<?php if(is_array($types)): $i = 0; $__LIST__ = $types;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>n<option value="<?php echo ($vo["tid"]); ?>"><?php echo ($vo["typename"]); ?></optio><?php endforeach; endif; else: echo "" ;endif; ?>
</selsct><br>
季节：<input type="checkbox" name="season[]" value="1">春季
      <input type="checkbox" name="season[]" value="2">夏季
      <input type="checkbox" name="season[]" value="3">秋季
      <input type="checkbox" name="season[]" value="4">冬季<br>
适合人群：<input type="radio" name="love" value="1">本地人爱去
          <input type="radio" name="love" value="2">外地人爱去<br>
门票：<input type="text" name="price"><br>
图片：<input type="file" name="pic"><br>
景点介绍：<script id="intro" name="content" type="text/plain"></script>
<script type="text/javascript">
       UE.getEditor('intro', {
           theme:"default", //皮肤
           lang:"zh-cn", //语言
           initialFrameWidth:500,  //初始化编辑器宽度,默认800
           initialFrameHeight:220,
           toolbars: [
               [
                   'source',
                   'undo', //撤销
                   'redo', //重做
                   'bold', //加粗
                   'italic', //斜体
                   'underline', //下划线
                   'selectall', //全选
                   'preview', //预览
                   'horizontal', //分隔线
                   'cleardoc', //清空文档
                   'fontfamily', //字体
                   'fontsize', //字号
                   'paragraph', //段落格式
                   'simpleupload', //单图上传
                   'insertimage', //多图上传
                   'link', //超链接
                   'emotion', //表情
                   'justifyleft', //居左对齐
                   'justifyright', //居右对齐
                   'justifycenter', //居中对齐
                   'justifyjustify', //两端对齐
                   'forecolor', //字体颜色
                   'backcolor', //背景色
                   'insertorderedlist', //有序列表
                   'insertunorderedlist', //无序列表
                   'fullscreen', //全屏
                   'imagenone', //默认
                   'imageleft', //左浮动
                   'imageright', //右浮动
                   'imagecenter', //居中
                   'lineheight', //行间距

                              ]
                           ]
                       });
                   </script>
                   <input type="submit" value="添加">

</form>
        </p>
      </div>
      <div class="modal-footer">
        <!-- <button class="btn" data-dismiss="modal" aria-hidden="true">
        关闭</button>
        <button class="btn btn-primary">保存</button> -->
      </div>
    </div>  

    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/travel/Public/admin/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/travel/Public/admin/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/travel/Public/admin/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/travel/Public/admin/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/travel/Public/admin/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/travel/Public/admin/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/travel/Public/admin/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/travel/Public/admin/assets/js/realm.js"></script>
  </body>
</html>